/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.invoice.controller;

import com.invoice.busines.SessionBO;
import com.invoice.busines.dto.VendedorDTO;
import java.io.Serializable;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;

/**
 *
 * @author Yo
 */
@ManagedBean
@ViewScoped
public class LoginBean extends BeanGenerico implements Serializable{
    private VendedorDTO vendedorDTO;
    private SessionBO sessionBO;
    
    public LoginBean(){
        
    }
    @Override
    protected void init() {
   
    }
    public String login(){
        if(sessionBO.login(vendedorDTO)){
            
        }
        return "Menu";
        
    }

    public VendedorDTO getVendedorDTO() {
        return vendedorDTO;
    }

    public void setVendedorDTO(VendedorDTO vendedorDTO) {
        this.vendedorDTO = vendedorDTO;
    }
    
}
